﻿#include "PythonRegister.h"
#include "FITK_Kernel/FITKPython/FITKPythonInterface.h"
#include "PythonInterface/Point.h"
#include "PythonInterface/Solid.h"
#include "PythonInterface/PrimitivesBox.h"
#include "PythonInterface/Chamfer.h"
#include "PythonInterface/AppendCompound.h"
#include "PythonInterface/RemoveCompound.h"
#include <QDebug>
PyRegister::PyRegister()
{
    _pyInterface = Python::FITKPythonInterface::getInstance();
}

void PyRegister::registWapper()
{

    _pyInterface->addDecorator(new PointWapper());
    _pyInterface->registerCPPClass("Point", "", "Point");

    _pyInterface->addDecorator(new SolidWapper());
    _pyInterface->registerCPPClass("Solid", "", "Global");

    _pyInterface->addDecorator(new BoxWrapper());
    _pyInterface->registerCPPClass("Box", "WrapperDataObject", "Global");

    _pyInterface->addDecorator(new ChamferWrapper());
    _pyInterface->registerCPPClass("Chamfer", "WrapperDataObject", "Global");

    _pyInterface->addDecorator(new AppendCompoundWrapper());
    _pyInterface->registerCPPClass("AppendCompound", "WrapperDataObject", "Global");

    _pyInterface->addDecorator(new RemoveCompoundWrapper());
    _pyInterface->registerCPPClass("RemoveCompound", "WrapperDataObject", "Global");
    _pyInterface->importPython();
}

